﻿using System;

namespace Cherry.Agile.RpcService.Client
{
    /// <summary>
    /// 请求的业务服务处理出现异常
    /// </summary>
    public class ServiceAppException :Exception
    {
      /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="rex"></param>
        /// <param name="responseMessage"></param>
        public ServiceAppException(ResponseCode responseCode)
            //: base(Strings.ServiceAppException + responseCode)
        {
            ResponseCode = responseCode;
        }

        /// <summary>
        /// 响应码
        /// </summary>
        public ResponseCode ResponseCode { get; set; }
    }
}
